package com.sci.feign;

import com.sci.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user-service")
public interface UserServiceFeign {
    @GetMapping("user/{id}")
    User getUser(@PathVariable(value = "id") Integer id);
}
